//
//  FeedCell.h
//  SpendFunk
//
//  Created by bm on 4/22/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "MainViewController.h"

@interface FeedCell : UITableViewCell <NSXMLParserDelegate>{
	UIImageView *m_pImgvCell;
	UIImageView *m_pImgvCellLocation;
	
	UILabel *m_pLblName;
	UIButton *m_pBtnName;
	
	UILabel *m_pLblLocation;
	UIButton *m_pBtnLocation;
	
	UILabel *m_pLblAmount;
	
	UIButton *m_pBtnComment;
	
	UILabel *m_pLblLike;
	UIButton *m_pBtnLike;
	
	
	BOOL isContinueParse;
	NSMutableData *m_pWebData;
	NSString *currentElementValue;
	NSString *currentElement;
	
	NSString *m_pSpendId;
	
	UILabel *m_pLblDetail;
	
	BOOL isCountLike;
	NSDictionary *m_pUserProfile;
	BOOL gettingCountLike;
	NSString *countLike;
	
	UIActivityIndicatorView *caculating;
	// foursquare
	NSString *m_pFoursquareID;
	// lat and long
	NSString *m_pLat;
	NSString *m_pLong;
	// location
	NSMutableDictionary *m_pDicLocation;
	// city
	NSString *city;
}
-(void)initCellView;
-(void)setUserProfile:(NSDictionary *)userProfile;
-(void)setName:(NSString *)name;
-(void)setAmount:(NSString *)amount;
-(void)setLocation:(NSString *)location;
-(void)setDetailLabel:(NSString *)detail;
-(void)setSpendId:(NSString*)spendId;
-(void)setFourquareID:(NSString*)fsquareID;
-(void)setLat:(NSString*)glat;
-(void)setLong:(NSString*)glong;
-(void)refreshLikeFunction;
-(void)getCountLike;
-(void)getProfilebyUserid:(NSString*)userid;
- (void)getLocationbyFSquareID:(NSString*)fourSquareID;
@end
